<?php
/*
@author	Dmitriy Kubarev
@link	http://www.simpleopencart.com
@link	http://www.opencart.com/index.php?route=extension/extension/info&extension_id=4811
*/  

class ControllerModuleSimple extends Controller {
	private $error = array(); 
	private $settings = array();
    
    private function get_settings($i){$a=Array('c2ltcGxlX2N1c3RvbWVyX2ZpZWxkc19zZXR0aW5ncw==','bWFpbl9lbWFpbA==','aWQ=','bWFpbl9lbWFpbA==','bGFiZWw=','cnU=','RS1tYWls','ZW4=','RS1tYWls','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl90eXBl','Mw==','dmFsaWRhdGlvbl9yZWdleHA=','L15bXlxAXStALipcLlthLXpdezIsNn0kL2k=','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0J7RiNC40LHQutCwINCyINCw0LTRgNC10YHQtSDRjdC70LXQutGC0YDQvtC90L3QvtC5INC/0L7Rh9GC0Ys=','ZW4=','RS1NYWlsIEFkZHJlc3MgZG9lcyBub3QgYXBwZWFyIHRvIGJlIHZhbGlkIQ==','c2F2ZV90bw==','ZW1haWw=','bWFpbl9maXJzdG5hbWU=','aWQ=','bWFpbl9maXJzdG5hbWU=','bGFiZWw=','cnU=','0JjQvNGP','ZW4=','Rmlyc3QgTmFtZQ==','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','Mg==','dmFsaWRhdGlvbl9taW4=','MQ==','dmFsaWRhdGlvbl9tYXg=','MzA=','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0JjQvNGPINC00L7Qu9C20L3QviDQsdGL0YLRjCDQvtGCIDEg0LTQviAzMCDRgdC40LzQstC+0LvQvtCy','ZW4=','Rmlyc3QgTmFtZSBtdXN0IGJlIGJldHdlZW4gMSBhbmQgMzIgY2hhcmFjdGVycyE=','c2F2ZV90bw==','Zmlyc3RuYW1l','bWFpbl9sYXN0bmFtZQ==','aWQ=','bWFpbl9sYXN0bmFtZQ==','bGFiZWw=','cnU=','0KTQsNC80LjQu9C40Y8=','ZW4=','TGFzdCBOYW1l','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','Mg==','dmFsaWRhdGlvbl9taW4=','MQ==','dmFsaWRhdGlvbl9tYXg=','MzA=','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0KTQsNC80LjQu9C40Y8g0LTQvtC70LbQvdC+INCx0YvRgtGMINC+0YIgMSDQtNC+IDMwINGB0LjQvNCy0L7Qu9C+0LI=','ZW4=','TGFzdCBOYW1lIG11c3QgYmUgYmV0d2VlbiAxIGFuZCAzMiBjaGFyYWN0ZXJzIQ==','c2F2ZV90bw==','bGFzdG5hbWU=','bWFpbl90ZWxlcGhvbmU=','aWQ=','bWFpbl90ZWxlcGhvbmU=','bGFiZWw=','cnU=','0KLQtdC70LXRhNC+0L0=','ZW4=','VGVsZXBob25l','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','Mg==','dmFsaWRhdGlvbl9taW4=','Mw==','dmFsaWRhdGlvbl9tYXg=','MzI=','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0KLQtdC70LXRhNC+0L0g0LTQvtC70LbQtdC9INCx0YvRgtGMINC+0YIgMyDQtNC+IDMyINGB0LjQvNCy0L7Qu9C+0LIh','ZW4=','VGVsZXBob25lIG11c3QgYmUgYmV0d2VlbiAzIGFuZCAzMiBjaGFyYWN0ZXJzIQ==','c2F2ZV90bw==','dGVsZXBob25l','bWFpbl9mYXg=','aWQ=','bWFpbl9mYXg=','bGFiZWw=','cnU=','0KTQsNC60YE=','ZW4=','RmF4','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','MA==','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','','ZW4=','','c2F2ZV90bw==','ZmF4','bWFpbl9jb21wYW55','aWQ=','bWFpbl9jb21wYW55','bGFiZWw=','cnU=','0JrQvtC80L/QsNC90LjRjw==','ZW4=','Q29tcGFueQ==','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','MA==','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','','ZW4=','','c2F2ZV90bw==','Y29tcGFueQ==','bWFpbl9jb21wYW55X2lk','aWQ=','bWFpbl9jb21wYW55X2lk','bGFiZWw=','cnU=','Q29tcGFueSBJRA==','ZW4=','Q29tcGFueSBJRA==','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','MA==','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','','ZW4=','','c2F2ZV90bw==','Y29tcGFueV9pZA==','bWFpbl9jb21wYW55X2lk','aWQ=','bWFpbl90YXhfaWQ=','bGFiZWw=','cnU=','VGF4IElE','ZW4=','VGF4IElE','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','MA==','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','','ZW4=','','c2F2ZV90bw==','Y29tcGFueV9pZA==','bWFpbl9hZGRyZXNzXzE=','aWQ=','bWFpbl9hZGRyZXNzXzE=','bGFiZWw=','cnU=','0JDQtNGA0LXRgQ==','ZW4=','QWRkcmVzcyBMaW5lIDE=','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','Mg==','dmFsaWRhdGlvbl9taW4=','Mw==','dmFsaWRhdGlvbl9tYXg=','MTI4','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0JDQtNGA0LXRgSDQtNC+0LvQttC10L0g0LHRi9GC0Ywg0L7RgiAzINC00L4gMTI4INGB0LjQvNCy0L7Qu9C+0LI=','ZW4=','QWRkcmVzcyAxIG11c3QgYmUgYmV0d2VlbiAzIGFuZCAxMjggY2hhcmFjdGVycyE=','c2F2ZV90bw==','YWRkcmVzc18x','bWFpbl9hZGRyZXNzXzI=','aWQ=','bWFpbl9hZGRyZXNzXzI=','bGFiZWw=','cnU=','0JDQtNGA0LXRgSAo0L/RgNC+0LTQvtC70LbQtdC90LjQtSk=','ZW4=','QWRkcmVzcyBMaW5lIDI=','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','MA==','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','','ZW4=','','c2F2ZV90bw==','YWRkcmVzc18y','bWFpbl9wb3N0Y29kZQ==','aWQ=','bWFpbl9wb3N0Y29kZQ==','bGFiZWw=','cnU=','0JjQvdC00LXQutGB','ZW4=','UG9zdGNvZGU=','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','aW5pdF9nZW9pcA==','dmFsaWRhdGlvbl90eXBl','Mg==','dmFsaWRhdGlvbl9taW4=','Mg==','dmFsaWRhdGlvbl9tYXg=','MTA=','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0J/QvtGH0YLQvtCy0YvQuSDQuNC90LTQtdC60YEg0LTQvtC70LbQtdC9INCx0YvRgtGMINC+0YIgMiDQtNC+IDEwINGB0LjQvNCy0L7Qu9C+0LI=','ZW4=','UG9zdGNvZGUgbXVzdCBiZSBiZXR3ZWVuIDIgYW5kIDEwIGNoYXJhY3RlcnMh','c2F2ZV90bw==','cG9zdGNvZGU=','bWFpbl9jb3VudHJ5X2lk','aWQ=','bWFpbl9jb3VudHJ5X2lk','bGFiZWw=','cnU=','0KHRgtGA0LDQvdCw','ZW4=','Q291bnRyeQ==','dHlwZQ==','c2VsZWN0','dmFsdWVz','Y291bnRyaWVz','aW5pdA==','','aW5pdF9nZW9pcA==','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl90eXBl','NA==','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0J/QvtC20LDQu9GD0LnRgdGC0LAg0LLRi9Cx0LXRgNC40YLQtSDRgdGC0YDQsNC90YM=','ZW4=','UGxlYXNlIHNlbGVjdCBhIGNvdW50cnk=','c2F2ZV90bw==','Y291bnRyeV9pZA==','bWFpbl96b25lX2lk','aWQ=','bWFpbl96b25lX2lk','bGFiZWw=','cnU=','0KDQtdCz0LjQvtC9','ZW4=','Wm9uZQ==','dHlwZQ==','c2VsZWN0','dmFsdWVz','em9uZXM=','aW5pdA==','MA==','aW5pdF9nZW9pcA==','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl90eXBl','NA==','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0J/QvtC20LDQu9GD0LnRgdGC0LAg0LLRi9Cx0LXRgNC40YLQtSDRgNC10LPQuNC+0L0=','ZW4=','UGxlYXNlIHNlbGVjdCBhIHJlZ2lvbg==','c2F2ZV90bw==','em9uZV9pZA==','bWFpbl9jaXR5','aWQ=','bWFpbl9jaXR5','bGFiZWw=','cnU=','0JPQvtGA0L7QtA==','ZW4=','Q2l0eQ==','dHlwZQ==','dGV4dA==','dmFsdWVz','','aW5pdA==','','aW5pdF9nZW9pcA==','dmFsaWRhdGlvbl9taW4=','Mg==','dmFsaWRhdGlvbl9tYXg=','MTI4','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl90eXBl','Mg==','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0JPQvtGA0L7QtCDQtNC+0LvQttC10L0g0LHRi9GC0Ywg0L7RgiAyINC00L4gMTI4INGB0LjQvNCy0L7Qu9C+0LI=','ZW4=','Q2l0eSBtdXN0IGJlIGJldHdlZW4gMiBhbmQgMTI4IGNoYXJhY3RlcnMh','c2F2ZV90bw==','Y2l0eQ==','bWFpbl9jb21tZW50','aWQ=','bWFpbl9jb21tZW50','bGFiZWw=','cnU=','0JrQvtC80LzQtdC90YLQsNGA0LjQuQ==','ZW4=','Q29tbWVudA==','dHlwZQ==','dGV4dGFyZWE=','dmFsdWVz','','aW5pdA==','','dmFsaWRhdGlvbl90eXBl','MA==','dmFsaWRhdGlvbl9taW4=','','dmFsaWRhdGlvbl9tYXg=','','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','','ZW4=','','c2F2ZV90bw==','Y29tbWVudA==','c2ltcGxlX2NvbXBhbnlfZmllbGRzX3NldHRpbmdz','Y29tcGFueV9uYW1l','aWQ=','Y29tcGFueV9uYW1l','bGFiZWw=','cnU=','0J3QsNC30LLQsNC90LjQtSDQutC+0LzQv9Cw0L3QuNC4','ZW4=','Q29tcGFueSBOYW1l','dHlwZQ==','dGV4dA==','dmFsdWVz','cnU=','','ZW4=','','dmFsaWRhdGlvbl90eXBl','Mg==','dmFsaWRhdGlvbl9taW4=','Mg==','dmFsaWRhdGlvbl9tYXg=','MTI4','dmFsaWRhdGlvbl9yZWdleHA=','','dmFsaWRhdGlvbl9lcnJvcg==','cnU=','0J3QsNC30LLQsNC90LjQtSDQutC+0LzQv9Cw0L3QuNC4INC00L7Qu9C20L3QviDQsdGL0YLRjCDQvtGCIDIg0LTQviAxMjgg0YHQuNC80LLQvtC70L7Qsg==','ZW4=','Q29tcGFueSBOYW1lIG11c3QgYmUgYmV0d2VlbiAyIGFuZCAxMjggY2hhcmFjdGVycw==','c2F2ZV90bw==','Y29tbWVudA==','c2ltcGxlX2N1c3RvbWVyX2ZpZWxkc19zZXQ=','ZGVmYXVsdA==','bWFpbl9lbWFpbCxtYWluX2ZpcnN0bmFtZSxtYWluX2xhc3RuYW1lLG1haW5fdGVsZXBob25lLG1haW5fY291bnRyeV9pZCxtYWluX3pvbmVfaWQsbWFpbl9jaXR5LG1haW5fcG9zdGNvZGUsbWFpbl9hZGRyZXNzXzEsbWFpbl9jb21tZW50','cmVnaXN0cmF0aW9u','bWFpbl9lbWFpbCxtYWluX2ZpcnN0bmFtZSxtYWluX2xhc3RuYW1lLG1haW5fY291bnRyeV9pZCxtYWluX3pvbmVfaWQsbWFpbl9jaXR5','c2ltcGxlX2F0dGVudGlvbg==','Y29udHJvbGxlci9jaGVja291dC9zaW1wbGVjaGVja291dC5waHA=','aHR0cDovL3d3dy5vcGVuY2FydC5jb20vaW5kZXgucGhwP3JvdXRlPWV4dGVuc2lvbi9leHRlbnNpb24vaW5mbyZleHRlbnNpb25faWQ9NDgxMQ==','RG1pdHJpeSBLdWJhcmV2IGlzIGF1dGhvciBvZiB0aGlzIG1vZHVsZSAoPGEgaHJlZj0iaHR0cDovL3d3dy5vcGVuY2FydC5jb20vaW5kZXgucGhwP3JvdXRlPWV4dGVuc2lvbi9leHRlbnNpb24vaW5mbyZleHRlbnNpb25faWQ9NDgxMSI+cGFnZSBvZiB0aGUgbW9kdWxlPC9hPikuIFBsZWFzZSByZXF1ZXN0IHJlZnVuZCBpZiB5b3UgYnV5IHRoaXMgbW9kdWxlIGZyb20gbm90IGF1dGhvciBhbmQgc2VuZCBlbWFpbCB0byBkbWl0cml5QHNpbXBsZW9wZW5jYXJ0LmNvbQ==');return base64_decode($a[$i]);}

    public function install() {
        $this->load->model('setting/setting');
        $this->settings['_840751290_']=Array(base64_decode('c' .'3Ryc3Ry'),base64_decode('Z' .'mlsZV9nZ' .'XRf' .'Y' .'29udGVu' .'dHM='));
        $this->model_setting_setting->editSetting('simple',array($this->get_settings(0)=> array($this->get_settings(1)=> array($this->get_settings(2)=> $this->get_settings(3),$this->get_settings(4)=> array($this->get_settings(5)=> $this->get_settings(6),$this->get_settings(7)=> $this->get_settings(8),),$this->get_settings(9)=> $this->get_settings(10),$this->get_settings(11)=> $this->get_settings(12),$this->get_settings(13)=> $this->get_settings(14),$this->get_settings(15)=> $this->get_settings(16),$this->get_settings(17)=> $this->get_settings(18),$this->get_settings(19)=> $this->get_settings(20),$this->get_settings(21)=> $this->get_settings(22),$this->get_settings(23)=> array($this->get_settings(24)=> $this->get_settings(25),$this->get_settings(26)=> $this->get_settings(27),),$this->get_settings(28)=> $this->get_settings(29)),$this->get_settings(30)=> array($this->get_settings(31)=> $this->get_settings(32),$this->get_settings(33)=> array($this->get_settings(34)=> $this->get_settings(35),$this->get_settings(36)=> $this->get_settings(37),),$this->get_settings(38)=> $this->get_settings(39),$this->get_settings(40)=> $this->get_settings(41),$this->get_settings(42)=> $this->get_settings(43),$this->get_settings(44)=> $this->get_settings(45),$this->get_settings(46)=> $this->get_settings(47),$this->get_settings(48)=> $this->get_settings(49),$this->get_settings(50)=> $this->get_settings(51),$this->get_settings(52)=> array($this->get_settings(53)=> $this->get_settings(54),$this->get_settings(55)=> $this->get_settings(56),),$this->get_settings(57)=> $this->get_settings(58)),$this->get_settings(59)=> array($this->get_settings(60)=> $this->get_settings(61),$this->get_settings(62)=> array($this->get_settings(63)=> $this->get_settings(64),$this->get_settings(65)=> $this->get_settings(66),),$this->get_settings(67)=> $this->get_settings(68),$this->get_settings(69)=> $this->get_settings(70),$this->get_settings(71)=> $this->get_settings(72),$this->get_settings(73)=> $this->get_settings(74),$this->get_settings(75)=> $this->get_settings(76),$this->get_settings(77)=> $this->get_settings(78),$this->get_settings(79)=> $this->get_settings(80),$this->get_settings(81)=> array($this->get_settings(82)=> $this->get_settings(83),$this->get_settings(84)=> $this->get_settings(85),),$this->get_settings(86)=> $this->get_settings(87)),$this->get_settings(88)=> array($this->get_settings(89)=> $this->get_settings(90),$this->get_settings(91)=> array($this->get_settings(92)=> $this->get_settings(93),$this->get_settings(94)=> $this->get_settings(95),),$this->get_settings(96)=> $this->get_settings(97),$this->get_settings(98)=> $this->get_settings(99),$this->get_settings(100)=> $this->get_settings(101),$this->get_settings(102)=> $this->get_settings(103),$this->get_settings(104)=> $this->get_settings(105),$this->get_settings(106)=> $this->get_settings(107),$this->get_settings(108)=> $this->get_settings(109),$this->get_settings(110)=> array($this->get_settings(111)=> $this->get_settings(112),$this->get_settings(113)=> $this->get_settings(114),),$this->get_settings(115)=> $this->get_settings(116)),$this->get_settings(117)=> array($this->get_settings(118)=> $this->get_settings(119),$this->get_settings(120)=> array($this->get_settings(121)=> $this->get_settings(122),$this->get_settings(123)=> $this->get_settings(124),),$this->get_settings(125)=> $this->get_settings(126),$this->get_settings(127)=> $this->get_settings(128),$this->get_settings(129)=> $this->get_settings(130),$this->get_settings(131)=> $this->get_settings(132),$this->get_settings(133)=> $this->get_settings(134),$this->get_settings(135)=> $this->get_settings(136),$this->get_settings(137)=> $this->get_settings(138),$this->get_settings(139)=> array($this->get_settings(140)=> $this->get_settings(141),$this->get_settings(142)=> $this->get_settings(143),),$this->get_settings(144)=> $this->get_settings(145)),$this->get_settings(146)=> array($this->get_settings(147)=> $this->get_settings(148),$this->get_settings(149)=> array($this->get_settings(150)=> $this->get_settings(151),$this->get_settings(152)=> $this->get_settings(153),),$this->get_settings(154)=> $this->get_settings(155),$this->get_settings(156)=> $this->get_settings(157),$this->get_settings(158)=> $this->get_settings(159),$this->get_settings(160)=> $this->get_settings(161),$this->get_settings(162)=> $this->get_settings(163),$this->get_settings(164)=> $this->get_settings(165),$this->get_settings(166)=> $this->get_settings(167),$this->get_settings(168)=> array($this->get_settings(169)=> $this->get_settings(170),$this->get_settings(171)=> $this->get_settings(172),),$this->get_settings(173)=> $this->get_settings(174)),$this->get_settings(175)=> array($this->get_settings(176)=> $this->get_settings(177),$this->get_settings(178)=> array($this->get_settings(179)=> $this->get_settings(180),$this->get_settings(181)=> $this->get_settings(182),),$this->get_settings(183)=> $this->get_settings(184),$this->get_settings(185)=> $this->get_settings(186),$this->get_settings(187)=> $this->get_settings(188),$this->get_settings(189)=> $this->get_settings(190),$this->get_settings(191)=> $this->get_settings(192),$this->get_settings(193)=> $this->get_settings(194),$this->get_settings(195)=> $this->get_settings(196),$this->get_settings(197)=> array($this->get_settings(198)=> $this->get_settings(199),$this->get_settings(200)=> $this->get_settings(201),),$this->get_settings(202)=> $this->get_settings(203)),$this->get_settings(204)=> array($this->get_settings(205)=> $this->get_settings(206),$this->get_settings(207)=> array($this->get_settings(208)=> $this->get_settings(209),$this->get_settings(210)=> $this->get_settings(211),),$this->get_settings(212)=> $this->get_settings(213),$this->get_settings(214)=> $this->get_settings(215),$this->get_settings(216)=> $this->get_settings(217),$this->get_settings(218)=> $this->get_settings(219),$this->get_settings(220)=> $this->get_settings(221),$this->get_settings(222)=> $this->get_settings(223),$this->get_settings(224)=> $this->get_settings(225),$this->get_settings(226)=> array($this->get_settings(227)=> $this->get_settings(228),$this->get_settings(229)=> $this->get_settings(230),),$this->get_settings(231)=> $this->get_settings(232)),$this->get_settings(233)=> array($this->get_settings(234)=> $this->get_settings(235),$this->get_settings(236)=> array($this->get_settings(237)=> $this->get_settings(238),$this->get_settings(239)=> $this->get_settings(240),),$this->get_settings(241)=> $this->get_settings(242),$this->get_settings(243)=> $this->get_settings(244),$this->get_settings(245)=> $this->get_settings(246),$this->get_settings(247)=> $this->get_settings(248),$this->get_settings(249)=> $this->get_settings(250),$this->get_settings(251)=> $this->get_settings(252),$this->get_settings(253)=> $this->get_settings(254),$this->get_settings(255)=> array($this->get_settings(256)=> $this->get_settings(257),$this->get_settings(258)=> $this->get_settings(259),),$this->get_settings(260)=> $this->get_settings(261)),$this->get_settings(262)=> array($this->get_settings(263)=> $this->get_settings(264),$this->get_settings(265)=> array($this->get_settings(266)=> $this->get_settings(267),$this->get_settings(268)=> $this->get_settings(269),),$this->get_settings(270)=> $this->get_settings(271),$this->get_settings(272)=> $this->get_settings(273),$this->get_settings(274)=> $this->get_settings(275),$this->get_settings(276)=> $this->get_settings(277),$this->get_settings(278)=> $this->get_settings(279),$this->get_settings(280)=> $this->get_settings(281),$this->get_settings(282)=> $this->get_settings(283),$this->get_settings(284)=> array($this->get_settings(285)=> $this->get_settings(286),$this->get_settings(287)=> $this->get_settings(288),),$this->get_settings(289)=> $this->get_settings(290)),$this->get_settings(291)=> array($this->get_settings(292)=> $this->get_settings(293),$this->get_settings(294)=> array($this->get_settings(295)=> $this->get_settings(296),$this->get_settings(297)=> $this->get_settings(298),),$this->get_settings(299)=> $this->get_settings(300),$this->get_settings(301)=> $this->get_settings(302),$this->get_settings(303)=> $this->get_settings(304),$this->get_settings(305)=> round(0),$this->get_settings(306)=> $this->get_settings(307),$this->get_settings(308)=> $this->get_settings(309),$this->get_settings(310)=> $this->get_settings(311),$this->get_settings(312)=> $this->get_settings(313),$this->get_settings(314)=> array($this->get_settings(315)=> $this->get_settings(316),$this->get_settings(317)=> $this->get_settings(318),),$this->get_settings(319)=> $this->get_settings(320)),$this->get_settings(321)=> array($this->get_settings(322)=> $this->get_settings(323),$this->get_settings(324)=> array($this->get_settings(325)=> $this->get_settings(326),$this->get_settings(327)=> $this->get_settings(328),),$this->get_settings(329)=> $this->get_settings(330),$this->get_settings(331)=> $this->get_settings(332),$this->get_settings(333)=> $this->get_settings(334),$this->get_settings(335)=> round(0),$this->get_settings(336)=> $this->get_settings(337),$this->get_settings(338)=> $this->get_settings(339),$this->get_settings(340)=> $this->get_settings(341),$this->get_settings(342)=> $this->get_settings(343),$this->get_settings(344)=> array($this->get_settings(345)=> $this->get_settings(346),$this->get_settings(347)=> $this->get_settings(348),),$this->get_settings(349)=> $this->get_settings(350)),$this->get_settings(351)=> array($this->get_settings(352)=> $this->get_settings(353),$this->get_settings(354)=> array($this->get_settings(355)=> $this->get_settings(356),$this->get_settings(357)=> $this->get_settings(358),),$this->get_settings(359)=> $this->get_settings(360),$this->get_settings(361)=> $this->get_settings(362),$this->get_settings(363)=> $this->get_settings(364),$this->get_settings(365)=> round(0),$this->get_settings(366)=> $this->get_settings(367),$this->get_settings(368)=> $this->get_settings(369),$this->get_settings(370)=> $this->get_settings(371),$this->get_settings(372)=> $this->get_settings(373),$this->get_settings(374)=> array($this->get_settings(375)=> $this->get_settings(376),$this->get_settings(377)=> $this->get_settings(378),),$this->get_settings(379)=> $this->get_settings(380)),$this->get_settings(381)=> array($this->get_settings(382)=> $this->get_settings(383),$this->get_settings(384)=> array($this->get_settings(385)=> $this->get_settings(386),$this->get_settings(387)=> $this->get_settings(388),),$this->get_settings(389)=> $this->get_settings(390),$this->get_settings(391)=> $this->get_settings(392),$this->get_settings(393)=> $this->get_settings(394),$this->get_settings(395)=> round(0),$this->get_settings(396)=> $this->get_settings(397),$this->get_settings(398)=> $this->get_settings(399),$this->get_settings(400)=> $this->get_settings(401),$this->get_settings(402)=> $this->get_settings(403),$this->get_settings(404)=> array($this->get_settings(405)=> $this->get_settings(406),$this->get_settings(407)=> $this->get_settings(408),),$this->get_settings(409)=> $this->get_settings(410)),$this->get_settings(411)=> array($this->get_settings(412)=> $this->get_settings(413),$this->get_settings(414)=> array($this->get_settings(415)=> $this->get_settings(416),$this->get_settings(417)=> $this->get_settings(418),),$this->get_settings(419)=> $this->get_settings(420),$this->get_settings(421)=> $this->get_settings(422),$this->get_settings(423)=> $this->get_settings(424),$this->get_settings(425)=> $this->get_settings(426),$this->get_settings(427)=> $this->get_settings(428),$this->get_settings(429)=> $this->get_settings(430),$this->get_settings(431)=> $this->get_settings(432),$this->get_settings(433)=> array($this->get_settings(434)=> $this->get_settings(435),$this->get_settings(436)=> $this->get_settings(437),),$this->get_settings(438)=> $this->get_settings(439))),$this->get_settings(440)=> array($this->get_settings(441)=> array($this->get_settings(442)=> $this->get_settings(443),$this->get_settings(444)=> array($this->get_settings(445)=> $this->get_settings(446),$this->get_settings(447)=> $this->get_settings(448),),$this->get_settings(449)=> $this->get_settings(450),$this->get_settings(451)=> array($this->get_settings(452)=> $this->get_settings(453),$this->get_settings(454)=> $this->get_settings(455),),$this->get_settings(456)=> $this->get_settings(457),$this->get_settings(458)=> $this->get_settings(459),$this->get_settings(460)=> $this->get_settings(461),$this->get_settings(462)=> $this->get_settings(463),$this->get_settings(464)=> array($this->get_settings(465)=> $this->get_settings(466),$this->get_settings(467)=> $this->get_settings(468),),$this->get_settings(469)=> $this->get_settings(470)),),$this->get_settings(471)=> array($this->get_settings(472)=> $this->get_settings(473),$this->get_settings(474)=> $this->get_settings(475),),$this->get_settings(476)=> $this->settings['_840751290_'][0]($this->settings['_840751290_'][1](DIR_CATALOG .$this->get_settings(477)),$this->get_settings(478))=== false?$this->get_settings(479):false));
    }
    
    public function index() {   
		$this->load->language('module/simple');
                
		$this->document->setTitle($this->language->get('heading_title'));
		
		$this->load->model('setting/setting');
		
		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {	
            $this->model_setting_setting->editSetting('simple', $this->request->post);		                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        $this->error['warning'] = $this->config->get('s'.'i'.'m'.'p'.'l'.'e'.'_'.'a'.'t'.'t'.'e'.'n'.'t'.'i'.'o'.'n');
			
			$this->session->data['success'] = $this->language->get('text_success');
			
			$this->redirect($this->url->link('module/simple', 'token=' . $this->session->data['token'], 'SSL'));
		}
				
		$this->data['heading_title'] = $this->language->get('heading_title');

		if (isset($this->error['warning'])) {
			$this->data['error_warning'] = $this->error['warning'];
		} elseif ($this->config->get('simple_attention') != '') {
			$this->data['error_warning'] = $this->config->get('simple_attention');
		} else {
			$this->data['error_warning'] = '';
		}
        
        if (isset($this->session->data['success'])) {
			$this->data['success'] = $this->session->data['success'];
            unset($this->session->data['success']);
		} else {
			$this->data['success'] = '';
		}
			
  		$this->data['breadcrumbs'] = array();

   		$this->data['breadcrumbs'][] = array(
       		'text'      => $this->language->get('text_home'),
			'href'      => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
      		'separator' => false
   		);

   		$this->data['breadcrumbs'][] = array(
       		'text'      => $this->language->get('text_module'),
			'href'      => $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'),
      		'separator' => ' :: '
   		);
		
   		$this->data['breadcrumbs'][] = array(
       		'text'      => $this->language->get('heading_title'),
			'href'      => $this->url->link('module/simple', 'token=' . $this->session->data['token'], 'SSL'),
      		'separator' => ' :: '
   		);
		
        $this->data['button_save'] = $this->language->get('button_save');
		$this->data['button_cancel'] = $this->language->get('button_cancel');
        
		$this->data['action'] = $this->url->link('module/simple', 'token=' . $this->session->data['token'], 'SSL');
		$this->data['cancel'] = $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL');
		$this->data['token'] = $this->session->data['token'];
        
        /*
        $this->data['lwa'] = $this->url->link('module/simple/write', 'token=' . $this->session->data['token'], 'SSL');
		*/
        
        $this->data['tab_checkout'] = $this->language->get('tab_checkout');
        $this->data['tab_customer_fields'] = $this->language->get('tab_customer_fields');
        $this->data['tab_company_fields'] = $this->language->get('tab_company_fields');
        $this->data['tab_registration'] = $this->language->get('tab_registration');
        $this->data['tab_registration_fields'] = $this->language->get('tab_registration_fields');
        $this->data['text_yes'] = $this->language->get('text_yes');
        $this->data['text_no'] = $this->language->get('text_no');
        
        $this->data['text_module_links'] = $this->language->get('text_module_links');
        $this->data['entry_payment_module'] = $this->language->get('entry_payment_module');
        $this->data['entry_shipping_modules'] = $this->language->get('entry_shipping_modules');
        $this->data['text_select_shipping'] = $this->language->get('text_select_shipping');
        $this->data['entry_template'] = $this->language->get('entry_template');
        $this->data['entry_template_description'] = $this->language->get('entry_template_description');
        $this->data['text_simplecheckout'] = $this->language->get('text_simplecheckout');
        $this->data['text_agreement_block'] = $this->language->get('text_agreement_block');
        $this->data['entry_agreement_id'] = $this->language->get('entry_agreement_id');
        $this->data['entry_agreement_text'] = $this->language->get('entry_agreement_text');
        $this->data['entry_agreement_checkbox'] = $this->language->get('entry_agreement_checkbox');
        $this->data['entry_agreement_checkbox_init'] = $this->language->get('entry_agreement_checkbox_init');
        $this->data['text_shipping_block'] = $this->language->get('text_shipping_block');
        $this->data['entry_shipping_title'] = $this->language->get('text_shipping_title');
        $this->data['entry_shipping_address_empty'] = $this->language->get('entry_shipping_address_empty');
        $this->data['text_payment_block'] = $this->language->get('text_payment_block');
        $this->data['entry_payment_address_empty'] = $this->language->get('entry_payment_address_empty');
        $this->data['text_customer_block'] = $this->language->get('text_customer_block');
        $this->data['entry_customer_register'] = $this->language->get('entry_customer_register');
        $this->data['text_user_choice'] = $this->language->get('text_user_choice');
        $this->data['entry_customer_login'] = $this->language->get('entry_customer_login');
        $this->data['entry_customer_type'] = $this->language->get('entry_customer_type');
        $this->data['entry_customer_register_init'] = $this->language->get('entry_customer_register_init');
        $this->data['entry_customer_address_select'] = $this->language->get('entry_customer_address_select');
        $this->data['text_registration_page'] = $this->language->get('text_registration_page');
        $this->data['entry_registration_agreement_id'] = $this->language->get('entry_registration_agreement_id');
        $this->data['entry_registration_agreement_checkbox'] = $this->language->get('entry_registration_agreement_checkbox');
        $this->data['entry_registration_agreement_checkbox_init'] = $this->language->get('entry_registration_agreement_checkbox_init');
        $this->data['entry_registration_captcha'] = $this->language->get('entry_registration_captcha');
        $this->data['text_fields_default'] = $this->language->get('text_fields_default');
        $this->data['entry_field_id'] = $this->language->get('entry_field_id');
        $this->data['entry_field_label'] = $this->language->get('entry_field_label');
        $this->data['entry_field_type'] = $this->language->get('entry_field_type');
        $this->data['entry_field_init'] = $this->language->get('entry_field_init');
        $this->data['entry_field_values'] = $this->language->get('entry_field_values');
        $this->data['entry_field_validation'] = $this->language->get('entry_field_validation');
        $this->data['entry_field_save_to'] = $this->language->get('entry_field_save_to');
        $this->data['entry_shipping_address_full'] = $this->language->get('entry_shipping_address_full');
        $this->data['entry_payment_address_full'] = $this->language->get('entry_payment_address_full');
        $this->data['entry_shipping_address_full_description'] = $this->language->get('entry_shipping_address_full_description');
        $this->data['entry_payment_address_full_description'] = $this->language->get('entry_payment_address_full_description');
        $this->data['text_validation_none'] = $this->language->get('text_validation_none');
        $this->data['text_validation_length'] = $this->language->get('text_validation_length');
        $this->data['text_validation_regexp'] = $this->language->get('text_validation_regexp');
        $this->data['text_validation_values'] = $this->language->get('text_validation_values');
        $this->data['text_validation_not_null'] = $this->language->get('text_validation_not_null');
        $this->data['entry_field_validation_error'] = $this->language->get('entry_field_validation_error');
        $this->data['text_select'] = $this->language->get('text_select');
        $this->data['entry_customer_subscribe'] = $this->language->get('entry_customer_subscribe');
        $this->data['entry_customer_subscribe_init'] = $this->language->get('entry_customer_subscribe_init');
        $this->data['text_add_field'] = $this->language->get('text_add_field');
        $this->data['button_add'] = $this->language->get('button_add');
        $this->data['button_delete'] = $this->language->get('button_delete');
        $this->data['entry_customer_password_confirm'] = $this->language->get('entry_customer_password_confirm');
        $this->data['entry_geoip_init'] = $this->language->get('entry_geoip_init');
        $this->data['entry_shipping_module'] = $this->language->get('entry_shipping_module');
        $this->data['entry_customer_fields'] = $this->language->get('entry_customer_fields');
        $this->data['entry_company_fields'] = $this->language->get('entry_company_fields');
        $this->data['entry_password_length'] = $this->language->get('entry_password_length');
        $this->data['entry_customer_email_field'] = $this->language->get('entry_customer_email_field');
        $this->data['text_hide'] = $this->language->get('text_hide');
        $this->data['text_show_not_required'] = $this->language->get('text_show_not_required');
        $this->data['text_required'] = $this->language->get('text_required');
        $this->data['text_validation_function'] = $this->language->get('text_validation_function');
        $this->data['entry_payment_autoselect_first'] = $this->language->get('entry_payment_autoselect_first');
        $this->data['entry_shipping_autoselect_first'] = $this->language->get('entry_shipping_autoselect_first');
        
        $this->init_field('simple_links', array());
        $this->init_field('simple_common_template', '{left_column}{cart}{customer}{/left_column}{right_column}{shipping}{payment}{agreement}{/right_column}');
        $this->init_field('simple_common_view_agreement_id');
        $this->init_field('simple_common_view_agreement_text');
        $this->init_field('simple_common_view_agreement_checkbox');
        $this->init_field('simple_common_view_agreement_checkbox_init');
        $this->init_field('simple_shipping_view_title');
        $this->init_field('simple_shipping_view_address_empty');
        $this->init_field('simple_payment_view_address_empty');
        $this->init_field('simple_payment_view_autoselect_first');
        $this->init_field('simple_shipping_view_autoselect_first');
        $this->init_field('simple_customer_action_register');
        $this->init_field('simple_customer_view_login');
        $this->init_field('simple_customer_view_customer_type');
        $this->init_field('simple_customer_view_customer_register_init');
        $this->init_field('simple_customer_view_address_select');
        $this->init_field('simple_registration_agreement_id');
        $this->init_field('simple_registration_agreement_checkbox');
        $this->init_field('simple_registration_agreement_checkbox_init');
        $this->init_field('simple_registration_captcha');
        $this->init_field('simple_shipping_view_address_full', array());
        $this->init_field('simple_payment_view_address_full', array());
        $this->init_field('simple_customer_action_subscribe');
        $this->init_field('simple_customer_view_customer_subscribe_init');
        $this->init_field('simple_registration_subscribe');
        $this->init_field('simple_registration_subscribe_init');
        $this->init_field('simple_customer_view_password_confirm');
        $this->init_field('simple_customer_view_password_length_min');
        $this->init_field('simple_customer_view_password_length_max');
        $this->init_field('simple_registration_password_confirm');
        $this->init_field('simple_registration_password_length_min');
        $this->init_field('simple_registration_password_length_max');
        $this->init_field('simple_registration_view_customer_type');
        $this->init_field('simple_customer_fields_set');
        $this->init_field('simple_company_fields_set');
        $this->init_field('simple_customer_view_email');
        
        $this->load->model('setting/extension');
        
        $payment_extensions = $this->model_setting_extension->getInstalled('payment');
        $tmp = array();
        foreach ($payment_extensions as $extension) {
            if ($this->config->get($extension . '_status')) {
                $tmp[] = $extension;
            }
        }
        $payment_extensions = $tmp;
        
        $this->data['payment_extensions'] = array();
        
        $files = glob(DIR_APPLICATION . 'controller/payment/*.php');
		
		if ($files) {
			foreach ($files as $file) {
				$extension = basename($file, '.php');
				
                if (in_array($extension, $payment_extensions)) {
                    $this->load->language('payment/' . $extension);
                    $this->data['payment_extensions'][$extension] = $this->language->get('heading_title');
				}
			}
		}
      
        $shipping_extensions = $this->model_setting_extension->getInstalled('shipping');
        $tmp = array();
        foreach ($shipping_extensions as $extension) {
            if ($this->config->get($extension . '_status')) {
                $tmp[] = $extension;
            }
        }
        $shipping_extensions = $tmp;
        
        $this->data['shipping_extensions'] = array();
        
        $files = glob(DIR_APPLICATION . 'controller/shipping/*.php');
		
		if ($files) {
			foreach ($files as $file) {
				$extension = basename($file, '.php');
				
                if (in_array($extension, $shipping_extensions)) {
                    $this->load->language('shipping/' . $extension);
                    $this->data['shipping_extensions'][$extension] = $this->language->get('heading_title');
				}
			}
		}
        
        $this->load->model('localisation/language');
        $languages = $this->model_localisation_language->getLanguages();
        $this->data['languages'] = array();
        foreach ($languages as $language) {
            $language['code'] = str_replace('-', '_', strtolower($language['code']));
            $this->data['languages'][] = $language;
        }
        $this->data['current_language'] = strtolower($this->config->get('config_admin_language'));
        
        $this->load->model('catalog/information');
		$this->data['informations'] = $this->model_catalog_information->getInformations();
        
        $this->init_field('simple_customer_fields_settings', array());
        $this->init_field('simple_custom_fields_settings', array());
        
        $this->data['simple_customer_all_fields_settings'] = $this->data['simple_customer_fields_settings'] + (!empty($this->data['simple_custom_fields_settings']) ? $this->data['simple_custom_fields_settings'] : array());
        
        $this->init_field('simple_company_fields_settings', array());

        $this->load->model('localisation/country');
        $this->data['countries'] = $this->model_localisation_country->getCountries();
        
        $this->load->model('localisation/zone');
        $this->data['zones'] = $this->model_localisation_zone->getZonesByCountryId($this->data['simple_customer_fields_settings']['main_country_id']['init']);
        
        $this->data['zone_action'] = $this->url->link('module/simple/zone', 'token=' . $this->session->data['token'], 'SSL');
		
        $this->template = 'module/simple.tpl';
		$this->children = array(
			'common/header',
			'common/footer'
		);
				
		$this->response->setOutput($this->render());
	}
    
    private function init_field($field_name, $default_value = '') {
        if (isset($this->request->post[$field_name])) {
			$this->data[$field_name] = $this->request->post[$field_name];
		} elseif ($field_settings = $this->config->get($field_name)) {
            $this->data[$field_name] = $field_settings;
        }
        
        if (empty($this->data[$field_name])) {
            $this->data[$field_name] = $default_value;
        }
    }
    
    public function zone() {
		$output = '<option value="">' . $this->language->get('text_select') . '</option>';
		
		$this->load->model('localisation/zone');

    	$results = $this->model_localisation_zone->getZonesByCountryId($this->request->get['country_id']);
        
      	foreach ($results as $result) {
        	$output .= '<option value="' . $result['zone_id'] . '">' . $result['name'] . '</option>';
    	} 
		
		if (!$results) {
		  	$output .= '<option value="0">' . $this->language->get('text_none') . '</option>';
		}
	
		$this->response->setOutput($output);
  	}  

	private function validate() {
		if (!$this->user->hasPermission('modify', 'module/simple')) {
			$this->error['warning'] = $this->language->get('error_permission');
		}
        
        if (empty($this->request->post['simple_common_template'])) {
            $this->error['warning'] = $this->language->get('error_exists');
			$this->error['error_simple_common_template'] = $this->data['error_simple_common_template'] = $this->language->get('error_simple_common_template');
		}
        
		if (!$this->error) {
			return true;
		} else {
			return false;
		}	
	}
}
?>